package logic

import (
	"context"
	"hrt/internal/common"

	"hrt/internal/svc"
	"hrt/internal/types"

	"github.com/zeromicro/go-zero/core/logx"
)

type PostLogic struct {
	logx.Logger
	ctx    context.Context
	svcCtx *svc.ServiceContext
}

func NewPostLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PostLogic {
	return &PostLogic{
		Logger: logx.WithContext(ctx),
		ctx:    ctx,
		svcCtx: svcCtx,
	}
}

func (l *PostLogic) Post(req *types.PostReq) (resp *types.PostResp, err error) {
	httpRequest := common.GetHttpRequestFromCtx(l.ctx)
	logx.WithContext(l.ctx).Infof("[批量发送短信请求原始数据]:%s", httpRequest.AllMessage)
	return
}
